home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ctt20.exe / OEMSETUP.INF < prev    next >
INI File  |  1994-02-07  |  34KB  |  1,326 lines

  1. ;***********************************************************************
  2. ;
  3. ; OEMSEUP.INF
  4. ;
  5. ;       T20XX network card and driver SETUP INF file.
  6. ;
  7. ; History:
  8. ;***********************************************************************
  9.  
  10. [Identification]
  11.     OptionType = NetAdapter
  12.  
  13. [PlatformsSupported]
  14.     ISA
  15.     EISA
  16.  
  17. [Options]
  18.     T20XX
  19.  
  20. ;***********************************************************************
  21. ; CONSTANTS FOR USING DIALOGS
  22. ;***********************************************************************
  23.  
  24. [FileConstants]
  25.  
  26.  
  27. GenericInfVersion  = " v1.00"
  28. GenericAdapterName = "Cabletron T20XX Token-Ring Adapter"
  29. GenericDriverName  = "Cabletron T20XX Token-Ring Driver"
  30. GenericSysName     = "T20N3.SYS"
  31. GenericName        = "T20XX"
  32.  
  33. ;
  34. ;  File names, etc.
  35. ;
  36. UtilityInf      = "UTILITY.INF"
  37. ParamInf        = "NCPARAM.INF"
  38. subroutineinf   = "SUBROUTN.INF"
  39. SoftwareType    = "driver"
  40. Exit_Code       = 0
  41.  
  42. ;
  43. ; EventLog Message File
  44. ;
  45. NetEventDLL     = "%SystemRoot%\System32\netevent.dll"
  46. IoLogMsgDLL     = "%SystemRoot%\System32\IoLogMsg.dll"
  47.  
  48. ; Product Info
  49. ;
  50. Manufacturer    = "Microsoft"
  51. ProductMajorVersion     = "3"
  52. ProductMinorVersion     = "1"
  53. ProductVersion  = $(ProductMajorVersion)"."$(ProductMinorVersion)
  54.  
  55. ;
  56. ; Software
  57. ;
  58. ProductSoftwareName     = "T20XX"
  59. ProductSoftwareImagePath = "\SystemRoot\System32\drivers\"$(GenericSysName)
  60. NetRuleSoftwareType     = "T20N3Sys ndisDriver T20XXDriver"
  61.  
  62. NetRuleSoftwareUse      = $(SoftwareType)
  63. NetRuleSoftwareBindForm = """T20N3Sys"" yes no container"
  64.  
  65. NetRuleSoftwareClass    = {"T20XXDriver basic"}
  66. NetRuleSoftwareBindable = {"T20XXDriver T20XXAdapter non exclusive 100"}
  67. ;
  68. ; Hardware
  69. ;
  70. ProductHardwareName        = "T20XX"
  71. NetRuleHardwareType        = "T20XX T20XXAdapter"
  72. NetRuleHardwareBindForm    = " yes yes container"
  73. NetRuleHardwareClass       = {"T20XXAdapter basic"}
  74.  
  75. ;
  76. ; Registry Key
  77. ;
  78. ProductKeyName  = $(!NTN_SoftwareBase)"\"$(Manufacturer)"\"$(ProductSoftwareName)"\CurrentVersion"
  79. ParamKeyName    = $(!NTN_ServiceBase)"\"$(ProductHardwareName)"\Parameters"
  80.  
  81. [GeneralConstants]
  82. ;
  83. ;  Program flow control variables.
  84. ;
  85. from      = ""
  86. to        = ""
  87. ;
  88. ;  Return codes; Exit_Code is set to one of these
  89. ;
  90. ExitCodeOk     = 0
  91. ExitCodeCancel = 1
  92. ExitCodeFatal  = 2
  93.  
  94. KeyNull         = ""
  95. MAXIMUM_ALLOWED   = 33554432
  96. RegistryErrorIndex = NO_ERROR
  97. KeyProduct      = ""
  98. KeyParameters   = ""
  99.  
  100. TRUE            = 1
  101. FALSE           = 0
  102. NoTitle            = 0
  103.  
  104. ExitState   = "Active"
  105. OldVersionExisted = $(FALSE)
  106.  
  107. DriverPath      = $(!STF_NTPATH)\drivers
  108.  
  109. [date]
  110.     ; Now is a list which contains { Sec from 1-1-1970, Year, Month, Day, Hour,
  111.     ; Minute, Second }
  112.     Now = {} ? $(!LIBHANDLE) GetSystemDate
  113.  
  114. [Identify]
  115.     ;
  116.     ;
  117.     read-syms Identification
  118.  
  119.     set Status     = STATUS_SUCCESSFUL
  120.     set Identifier = $(OptionType)
  121.     set Media      = #("Source Media Descriptions", 1, 1)
  122.  
  123.     Return $(Status) $(Identifier) $(Media)
  124.  
  125. [ReturnOptions]
  126.     ;
  127.     ;
  128.     set Status        = STATUS_FAILED
  129.     set OptionList     = {}
  130.     set OptionTextList = {}
  131.  
  132.     ;
  133.     ; Check if the language requested is supported
  134.     ;
  135.     set LanguageList = ^(LanguagesSupported, 1)
  136.     Ifcontains(i) $($0) in $(LanguageList)
  137.     ;
  138.     ; Check if the platforms requested is supported
  139.     ;
  140.     ifstr(i) $($1) == ""
  141.             goto returnoptions
  142.     endif
  143.  
  144.     set PlatformList = ^(PlatformsSupported, 1)
  145.     Ifcontains(i) $($1) in $(PlatformList)
  146.             goto returnoptions
  147.     else
  148.             set Status = STATUS_NOTSUPPORTED
  149.             goto finish_ReturnOptions
  150.     endif
  151.     else
  152.         set Status = STATUS_NOLANGUAGE
  153.         goto finish_ReturnOptions
  154.     endif
  155.  
  156.     ;
  157.     ; form a list of all the options and another of the text representing
  158.     ;
  159.  
  160. returnoptions = +
  161.     set OptionList     = ^(Options, 1)
  162.     set OptionTextList = ^(OptionsText$($0), 1)
  163.     set Status         = STATUS_SUCCESSFUL
  164.  
  165. finish_ReturnOptions = +
  166.     Return $(Status) $(OptionList) $(OptionTextList)
  167.  
  168. [InstallOption]
  169.     ;
  170.     ; Set default values for
  171.     ;
  172.     set Status   = STATUS_FAILED
  173.     ;
  174.     ; extract parameters
  175.     ;
  176.     set Option   = $($1)
  177.     set SrcDir   = $($2)
  178.     set AddCopy  = $($3)
  179.     set DoCopy   = $($4)
  180.     set DoConfig = $($5)
  181.  
  182.     ;
  183.     ; Check if the language requested is supported
  184.     ;
  185.     set LanguageList = ^(LanguagesSupported, 1)
  186.     Ifcontains(i) $($0) NOT-IN $(LanguageList)
  187.     Return STATUS_NOLANGUAGE
  188.     endif
  189.  
  190.     set-subst LF = "\n"
  191.  
  192.     read-syms GeneralConstants
  193.     read-syms FileConstants
  194.  
  195.     read-syms DialogConstants$(!STF_LANGUAGE)
  196.     ifstr(i) $(!NTN_Origination) == "NCPA"
  197.     set Continue = $(OK)
  198.     endif
  199.     read-syms FileConstants$(!STF_LANGUAGE)
  200.  
  201.     detect date
  202.  
  203.     set-title  $(FunctionTitle)
  204.  
  205.     set to   = Begin
  206.     set from = Begin
  207. ;
  208. ;  Assume all is well.
  209. ;
  210.     set CommonStatus = STATUS_SUCCESSFUL
  211.  
  212.     EndWait
  213.  
  214. ;
  215. ;   Set up the operation-mode-based variables and gaily welcome
  216. ;   the user.  If the "install mode" variable is improperly set,
  217. ;   assume this is a new installation.
  218. ;
  219.  
  220. Begin = +
  221.     Set ActivateDetection = FALSE
  222.  
  223.     Ifstr(i) $(!NTN_InstallMode) == deinstall
  224.     set StartLabel = removeadapter
  225.     else-Ifstr(i) $(!NTN_InstallMode) == Update
  226.     set StartLabel = UpgradeSoftware
  227.     else-Ifstr(i) $(!NTN_InstallMode) == bind
  228.     set StartLabel = bindingadapter
  229.     else-Ifstr(i) $(!NTN_InstallMode) == configure
  230. ;        set ActivateDetection = TRUE
  231.     set StartLabel = configureadapter
  232.     ;
  233.     ;   You cannot config the software component
  234.     ;
  235.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  236.         Shell $(UtilityInf),RegistryErrorString,CANNOT_CONFIGURE_SOFTWARE
  237.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  238.         goto ShellCodeError
  239.         endif
  240.         set Error = $($R0)
  241.         set from = end
  242.         set to = end
  243.         goto nonfatalinfo
  244.     endif
  245.     else
  246. ;        set ActivateDetection = TRUE
  247.     set StartLabel = installadapter
  248.     set OEM_ABANDON_OPTIONS = {}
  249.     set OEM_ABANDON_SOFTWARE = FALSE
  250.     set OEM_ABANDON_ON = TRUE
  251.     endif
  252.  
  253.  
  254.  
  255.     ;  set the default values
  256.  
  257.     ; IRQ Level = 5
  258.     set IRQValue = *($(IRQList), 3)
  259.  
  260.     ; IOBase Address = 0x0a20
  261.     set IOBaseAddrValue = *($(IOBaseAddrList), 1)
  262.  
  263.     ; DMAChannel = 5
  264.     set DMAChannelValue = *($(DMAChannelList), 1)
  265.  
  266.     ; Packet Size =4500
  267.     set PacketsizeValue = *($(PacketsizeList), 4)
  268.  
  269.     ; Transceiver - UTP, Line Speed - 16, Timing - Default
  270.     set RadioIn = { 1, 4, 5 }
  271.  
  272.     set CardTypeValue = 0
  273.  
  274.     Set from = $(fatal)
  275.     Set to = $(fatal)
  276.     Goto $(StartLabel)
  277.  
  278. ;-----------------------------------------------
  279. ; Installation Section
  280. ;-----------------------------------------------
  281.  
  282. installadapter = +
  283. ;
  284. ;   First, check whether the same version of the software exists
  285. ;
  286.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  287.  
  288.     Ifstr $(KeyProduct) != $(KeyNull)
  289.     ;
  290.     ; Same version already existed in the local machine
  291.     ; Popup the dialog and ask the user whether he wants to continue
  292.     ;
  293.     CloseRegKey $(KeyProduct)
  294.  
  295.     ifstr(i) !(NTN_RegBase) == $(ProductKeyName)
  296.        ;
  297.        ; Cannot Install the same software again
  298.        ;
  299.        Shell $(UtilityInf), VerExistedDlg, $(ProductSoftwareTitle),+
  300.            $(ProductVersion)
  301.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  302.            goto ShellCodeError
  303.        endif
  304.  
  305.        goto end
  306.     else
  307.        ;
  308.        ; Add a new adapter card?
  309.        ;
  310.        Shell $(UtilityInf), CardExistedDlg
  311.  
  312.        ifint $($ShellCode) != $(!SHELL_CODE_OK)
  313.            goto ShellCodeError
  314.        endif
  315.  
  316.        ifstr(i) $($R1) != "OK"
  317.            goto end
  318.        endif
  319.        set OldVersionExisted = $(TRUE)
  320.     endif
  321.     endif
  322.  
  323. ;
  324. ;  dll load addition
  325. ;
  326.     Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  327.  
  328.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  329.     Goto ShellCodeError
  330.     Else-Ifstr(i) $($R0) == STATUS_FAILED
  331.     Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  332.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  333.         goto ShellCodeError
  334.     endif
  335.     set Error = $($R0)
  336.     Goto fatal
  337.     Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  338.     Goto successful
  339.     Endif
  340.  
  341.     Set SrcDir = $($R1)
  342.  
  343.     install "Install-Dll"
  344.  
  345.     goto adaptersetup
  346.  
  347. ;-----------------------------------------------
  348. ; Configuration Section
  349. ;-----------------------------------------------
  350. ;
  351. ;   Get the current values of all the parameters
  352. ;
  353. configureadapter = +
  354.     Ifstr $(KeyProduct) == $(KeyNull)
  355.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) $(MAXIMUM_ALLOWED) KeyProduct
  356.     Ifstr $(KeyProduct) == $(KeyNull)
  357.         set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  358.         goto fatalregistry
  359.     Endif
  360.     Endif
  361.  
  362.     ;
  363.     ; Get the other parameters;  they're attached to the service parameters key
  364.     ;
  365.     Shell $(UtilityInf) FindService, $(KeyProduct)
  366.     Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  367.     Goto ShellCodeError
  368.     Endif
  369.     Ifstr(i) $($R0) != NO_ERROR
  370.     Goto fatalregistry
  371.     endif
  372.  
  373.     Set KeyParameters = $($R2)
  374.  
  375.     ;
  376.     ;  We don't need the services key, so close it.
  377.     ;
  378.     CloseRegKey $($R1)
  379.  
  380.     Ifstr $(KeyParameters) == $(KeyNull)
  381.     set RegistryErrorIndex = CANNOT_FIND_COMPONENT_SERVICE
  382.     goto fatalregistry
  383.     endif
  384.  
  385.     set OldVersionExisted = $(TRUE)
  386.  
  387.     set ValueName = ""
  388.     set ValueData = ""
  389.     set ValueStr  = ""
  390.     set ValueList = {}
  391.  
  392.  
  393.     ;
  394.     ; Get the old values
  395.     ;
  396.     EnumRegValue $(KeyParameters) ValueList
  397.  
  398.     ForListDo $(ValueList)
  399.     set ValueItem = $($)
  400.     set ValueName = *($(ValueItem),1)
  401.     set ValueData = *($(ValueItem),4)
  402.     ifstr(i) $(ValueName) == "InterruptNumber"
  403.         set IRQValueIndex = $(ValueData)
  404.     else-ifstr(i) $(ValueName) == "IoBaseAddress"
  405.         set IOBaseAddrIndex = $(ValueData)
  406.     else-ifstr(i) $(ValueName) == "DMAChannel"
  407.         set DMAChannelIndex = $(ValueData)
  408.             else-ifstr(i) $(ValueName) == "Packetsize"
  409.                 set PacketsizeIndex = $(ValueData)
  410.     else-ifstr(i) $(ValueName) == "Transceiver"
  411.         set Transceiver = $(ValueData)
  412.     else-ifstr(i) $(ValueName) == "LineSpeed"
  413.         set LineSpeed = $(ValueData)
  414.     else-ifstr(i) $(ValueName) == "Timing"
  415.         set Timing = $(ValueData)
  416.     else-ifstr(i) $(ValueName) == "NetworkAddress"
  417.         set NetworkAddress = $(ValueData)
  418.  
  419.     endif
  420.  
  421.     EndForListDo
  422.  
  423. ;    Ifint $(CardTypeValue) == 0
  424. ;       Set RadioIn = {1}
  425. ;    Else-Ifint $(CardTypeValue) == 1
  426. ;       Set RadioIn = {2}
  427. ;    Else-Ifint $(CardTypeValue) == 2
  428. ;       Set RadioIn = {3}
  429. ;    Endif
  430.  
  431.     set IRQValue = *($(IRQList), ~($(IRQValues),$(IRQValueIndex)))
  432.     ifstr(i) $(IRQValue) == ""
  433.     set IRQValue = *($(IRQList), 3)
  434.     endif
  435.  
  436.     set DMAChannelValue = *($(DMAChannelList), ~($(DMAChannelValues),$(DMAChannelIndex)))
  437.     ifstr(i) $(DMAChannelValue) == ""
  438.        set DMAChannelValue = *($(DMAChannelList), 1)
  439.     endif
  440.  
  441.     set IOBaseAddrValue = *($(IOBaseAddrList), ~($(IOBaseAddrValues),$(IOBaseAddrIndex)))
  442.     ifstr(i) $(IOBaseAddrValue) == ""
  443.     set IOBaseAddrValue = *($(IOBaseAddrList), 1)
  444.     endif
  445.  
  446.     set PacketsizeValue = *($(PacketsizeList), ~($(PacketsizeValues),$(PacketsizeIndex)))
  447.     ifstr(i) $(PacketsizeValue) == ""
  448.     set PacketsizeValue = *($(PacketsizeList), 4)
  449.     endif
  450.  
  451. ; set radio  values
  452.  
  453.     Ifint $(Transceiver) == 1
  454.         set Rad1 = 2
  455.     else 
  456.         set Rad1 = 1
  457.     endif
  458.  
  459.     Ifint $(LineSpeed) == 1
  460.         set Rad2 = 3
  461.     else
  462.         set Rad2 = 4
  463.     endif
  464.  
  465.     Ifint $(Timing) == 1
  466.         set Rad3 = 6
  467.     else
  468.         set Rad3 = 5
  469.     endif
  470.  
  471.     set RadioIn = {$(Rad1), $(Rad2), $(Rad3)}
  472.  
  473.     ;  Save the settings as they were read from the Registry.
  474.  
  475. ;    Shell $(ParamInf) Param_SaveValues
  476. ;    Set CurrParamSettings = $($R0)
  477. ;
  478. ;   Put up the adapter configuration dialog if necessary.
  479. ;
  480. ;   Note that $(CurrParamSettings) has the old known parameter values.
  481. ;
  482. adaptersetup = +
  483.  
  484.  
  485. ;    Shell "" DebugConfiguration "before displaying dialog"
  486.  
  487.     Set from = adapteroptions
  488.  
  489.  
  490. adapteroptions = +
  491.  
  492.  
  493.     LoadLibrary "Disk 1" $(DialogDllName) hLib
  494.  
  495.     read-syms FileDependentDlg$(!STF_LANGUAGE)
  496.  
  497.     ui start "InputDlg"  $(hLib)
  498.  
  499.     set ExitButton      = $(ButtonPressed)
  500.  
  501.     FreeLibrary $(hLib)
  502.  
  503.     ifstr(i) $(DLGEVENT) == "CONTINUE"
  504.         set IRQValueIndex = $(Combo1Out)
  505.         set IOBaseAddrIndex = $(Combo2Out)
  506.         set DMAChannelIndex = $(Combo3Out)
  507.                         set PacketsizeIndex = $(Combo4Out)
  508.                         set NetworkAddress = *($(EditTextOut),1)
  509.         set ExitButton      = $(ButtonPressed)
  510.  
  511.                 IfContains "1" IN $(RadioOut)
  512.                     set Transceiver = 0
  513.                 else-IfContains "2" IN $(RadioOut)
  514.                     set Transceiver = 1
  515.                 endif
  516.                 IfContains "3" IN $(RadioOut)
  517.                     set LineSpeed = 1
  518.                 else-IfContains "4" IN $(RadioOut)
  519.                     set LineSpeed = 0
  520.                 endif
  521.                 IfContains "5" IN $(RadioOut)
  522.                     set Timing = 0
  523.                 else-IfContains "6" IN $(RadioOut)
  524.                     set Timing = 1
  525.                 endif
  526.  
  527.         ;set TransceiverIndex = *($(RadioOut),1)
  528.  
  529.         ;Ifint $(CardTypeIndex) == 1
  530.             ;Set CardTypeValue = 0
  531.         ;else-Ifint $(CardTypeIndex) == 2
  532.             ;Set CardTypeValue = 1
  533.         ;else-Ifint $(CardTypeIndex) == 3
  534.             ;Set CardTypeValue = 2
  535.         ;Endif
  536.  
  537.  
  538.  
  539.         ui pop 1
  540. ;               goto nextstep
  541.     else-ifstr(i) $(DLGEVENT) == "EXIT"
  542.         set CommonStatus = STATUS_USERCANCEL
  543.         ui pop 1
  544.         goto end
  545.     else
  546.         ;
  547.         ; Unknow command
  548.         ;
  549.         ui pop 1
  550.  
  551.         goto end
  552.     endif
  553.  
  554. ;
  555. ;   If installing, go create the necessary keys;
  556. ;   if configuring, they're already open.
  557. ;
  558. skipoptions =+
  559.  
  560.     ifint $(OldVersionExisted) == $(TRUE)
  561.     ifstr(i) $(!NTN_InstallMode) == configure
  562.         goto writeparameters
  563.     endif
  564.     endif
  565.     StartWait
  566.     ;
  567.     ; Add Software Component
  568.     ;
  569.     ifint $(OldVersionExisted) == $(FALSE)
  570.  
  571.     ifstr(i) $(!NTN_InstallMode) == "install"
  572.        Ifstr(i) $(DoCopy) == "YES"
  573.  
  574.           Shell $(UtilityInf), DoAskSource, $(!STF_CWDDIR), $(SrcDir) YES
  575.  
  576.           Ifint $($ShellCode) != $(!SHELL_CODE_OK)
  577.           Goto ShellCodeError
  578.           Else-Ifstr(i) $($R0) == STATUS_FAILED
  579.           Shell $(UtilityInf) RegistryErrorString "ASK_SOURCE_FAIL"
  580.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  581.               goto ShellCodeError
  582.           endif
  583.           set Error = $($R0)
  584.           Goto fatal
  585.           Else-Ifstr(i) $($R0) == STATUS_USERCANCEL
  586.           Goto successful
  587.           Endif
  588.  
  589.           Set SrcDir = $($R1)
  590.  
  591.        Endif
  592.  
  593.        install "Install-Option"
  594.  
  595.        ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  596.           Shell $(UtilityInf) RegistryErrorString "UNABLE_COPY_FILE"
  597.           ifint $($ShellCode) != $(!SHELL_CODE_OK)
  598.           goto ShellCodeError
  599.           endif
  600.           set Error = $($R0)
  601.           goto fatal
  602.        endif
  603.     endif
  604.  
  605.  
  606.  
  607.     Shell $(UtilityInf), AddSoftwareComponent, $(Manufacturer), +
  608.         $(ProductSoftwareName), +
  609.         $(ProductSoftwareName), +
  610.         $(ProductSoftwareTitle), $(STF_CONTEXTINFNAME), +
  611.         $(ProductSoftwareImagePath), "kernel", "NDIS", {}, "",+
  612.         $(NetEventDLL)
  613.  
  614.     Set OEM_ABANDON_SOFTWARE = TRUE
  615.  
  616.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  617.         goto ShellCodeError
  618.     endif
  619.  
  620.     set RegistryErrorIndex = $($R0)
  621.     set KeyProduct      = $($R1)
  622.     Set SoftNetRulesKey = $($R2)
  623.     CloseRegKey $($R3)
  624.     CloseRegKey $($R4)
  625.     CloseRegKey $($R5)
  626.  
  627.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  628.         EndWait
  629.         CloseRegKey $(KeyProduct)
  630.         CloseRegKey $(SoftNetRulesKey)
  631.         goto fatalregistry
  632.     endif
  633.  
  634.     set NewValueList = {{SoftwareType,$(NoTitle),$(!REG_VT_SZ),$(SoftwareType)},+
  635.                {MajorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMajorVersion)},+
  636.                {MinorVersion,$(NoTitle),$(!REG_VT_DWORD),$(ProductMinorVersion)},+
  637.                {Title,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareTitle)},+
  638.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareDescription)},+
  639.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$(ProductSoftwareName)},+
  640.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  641.  
  642.     Shell  $(UtilityInf), AddValueList, $(KeyProduct), $(NewValueList)
  643.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  644.         goto ShellCodeError
  645.     endif
  646.  
  647.     set RegistryErrorIndex = $($R0)
  648.  
  649.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  650.         EndWait
  651.         CloseRegKey $(KeyProduct)
  652.         CloseRegKey $(SoftNetRulesKey)
  653.         goto fatalregistry
  654.     endif
  655.  
  656.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareType)},+
  657.                 {use,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareUse)}, +
  658.                 {bindform,$(NoTitle),$(!REG_VT_SZ),$(NetRuleSoftwareBindForm)}, +
  659.                 {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareClass)}, +
  660.                 {bindable,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleSoftwareBindable)}, +
  661.                 {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  662.  
  663.     Shell  $(UtilityInf), AddValueList, $(SoftNetRulesKey), $(NewValueList)
  664.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  665.         goto ShellCodeError
  666.     endif
  667.  
  668.     set RegistryErrorIndex = $($R0)
  669.  
  670.     CloseRegKey $(KeyProduct)
  671.     CloseRegKey $(SoftNetRulesKey)
  672.  
  673.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  674.         EndWait
  675.         goto fatalregistry
  676.     endif
  677.     endif
  678. ;
  679. ;   Create the HARDWARE\Netcard region and its corresponding service
  680. ;
  681.     Shell $(UtilityInf), AddHardwareComponent, $(ProductHardwareName),$(STF_CONTEXTINFNAME),$(ProductKeyName)
  682.  
  683.     ifint $($R4) != -1
  684.     Set OEM_ABANDON_OPTIONS = >($(OEM_ABANDON_OPTIONS), $(!NTN_SoftwareBase)"\Microsoft\Windows NT\CurrentVersion\NetworkCards\"$($R4))
  685.     endif
  686.  
  687.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  688.     goto ShellCodeError
  689.     endif
  690.  
  691.     set RegistryErrorIndex = $($R0)
  692.  
  693.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  694.     EndWait
  695.     CloseRegKey $($R1)
  696.     CloseRegKey $($R2)
  697.     CloseRegKey $($R3)
  698.     goto fatalregistry
  699.     endif
  700.  
  701.     set KeyParameters = $($R3)
  702.     set KeyAdapterRules = $($R2)
  703.     set AdapterNumber = $($R4)
  704.  
  705.     set NewValueList = {{Manufacturer,$(NoTitle),$(!REG_VT_SZ),$(Manufacturer)},+
  706.                {Title,$(NoTitle),$(!REG_VT_SZ),"["$($R4)"] "$(ProductHardware$(Option)Title)},+
  707.                {Description,$(NoTitle),$(!REG_VT_SZ),$(ProductHardware$(Option)Description)},+
  708.                {ProductName,$(NoTitle),$(!REG_VT_SZ),$(ProductHardwareName)},+
  709.                {ServiceName,$(NoTitle),$(!REG_VT_SZ),$($R5)},+
  710.                {InstallDate,$(NoTitle),$(!REG_VT_DWORD),*($(Now),1)}}
  711.  
  712.     Shell  $(UtilityInf), AddValueList, $($R1), $(NewValueList)
  713.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  714.     goto ShellCodeError
  715.     endif
  716.  
  717.     CloseRegKey $($R1)
  718.  
  719.     set TempProdName = """"$(ProductHardwareName)$(AdapterNumber)""""
  720.     set TempBindForm = $(TempProdName)$(NetRuleHardwareBindForm)
  721.  
  722.     set NewValueList = {{type,$(NoTitle),$(!REG_VT_SZ),$(NetRuleHardwareType)},+
  723.             {bindform,$(NoTitle),$(!REG_VT_SZ),$(TempBindForm)}, +
  724.             {class,$(NoTitle),$(!REG_VT_MULTI_SZ),$(NetRuleHardwareClass)}, +
  725.             {InfOption,$(NoTitle),$(!REG_VT_SZ),$(Option)}}
  726.  
  727.     Shell  $(UtilityInf), AddValueList, $(KeyAdapterRules), $(NewValueList)
  728.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  729.     goto ShellCodeError
  730.     endif
  731.  
  732.     set RegistryErrorIndex = $($R0)
  733.  
  734.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  735.     EndWait
  736.     CloseRegKey $(KeyParameters)
  737.     CloseRegKey $(KeyAdapterRules)
  738.     goto fatalregistry
  739.     endif
  740.  
  741.     CloseRegKey $(KeyAdapterRules)
  742.  
  743.     goto writeparameters
  744. ;
  745. ;   REQUIRED:   $(KeyParameters) contains service Parameters key handle
  746. ;
  747. writeparameters = +
  748.     Shell $(UtilityInf), GetBusTypeNum
  749.     set BusTypeNum = $($R1)
  750.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  751.     goto ShellCodeError
  752.     endif
  753.  
  754. ;    Set NewValueList = {{Transceiver,$(NoTitle),$(!REG_VT_DWORD),$(TransceiverValue)},+
  755. ;                       {BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  756. ;                       {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  757. ;                       {MemoryMapped,$(NoTitle),$(!REG_VT_DWORD),$(MappedValue)},+
  758. ;                       {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
  759. ;                       {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)}}
  760. ;
  761.  
  762.     set DMAChannelValue = *($(DMAChannelValues), ~($(DMAChannelList),$(DMAChannelIndex)))
  763.  
  764.     set IRQValue = *($(IRQValues), ~($(IRQList),$(IRQValueIndex)))
  765.  
  766.     set IOBaseAddrValue = *($(IOBaseAddrValues), ~($(IOBaseAddrList),$(IOBaseAddrIndex)))
  767.  
  768.     set PacketsizeValue = *($(PacketsizeValues), ~($(PacketsizeList),$(PacketsizeIndex)))
  769.  
  770.     set NetworkAddress = *($(EditTextOut),1)
  771.  
  772.  
  773.     set NewValueList = {{BusType,$(NoTitle),$(!REG_VT_DWORD),$(BusTypeNum)},+
  774.              {MediaType,$(NoTitle),$(!REG_VT_DWORD),1},+
  775.             {InterruptNumber,$(NoTitle),$(!REG_VT_DWORD),$(IRQValue)},+
  776.                     {IoBaseAddress,$(NoTitle),$(!REG_VT_DWORD),$(IOBaseAddrValue)},+
  777.                              {DMAChannel,$(NoTitle),$(!REG_VT_DWORD),$(DMAChannelValue)},+
  778.             {Packetsize,$(NoTitle),$(!REG_VT_DWORD),$(PacketsizeValue)},+
  779.             {NetworkAddress,$(NoTitle),$(!REG_VT_SZ),$(NetworkAddress)},+
  780.                                {Transceiver,$(NoTitle),$(!REG_VT_DWORD),$(Transceiver)},+
  781.                                {LineSpeed,$(NoTitle),$(!REG_VT_DWORD),$(LineSpeed)},+           
  782.                                {Timing,$(NoTitle),$(!REG_VT_DWORD),$(Timing)}}
  783.  
  784.  
  785.     Shell  $(UtilityInf), AddValueList, $(KeyParameters), $(NewValueList)
  786.  
  787.     CloseRegKey $(KeyParameters)
  788.  
  789.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  790.     goto ShellCodeError
  791.     endif
  792.  
  793.     set RegistryErrorIndex = $($R0)
  794.  
  795.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  796.     goto fatalregistry
  797.     endif
  798.  
  799.     EndWait
  800.  
  801.     goto successful
  802.  
  803. ;-----------------------------------------------
  804. ; Binding section
  805. ;-----------------------------------------------
  806. bindingadapter =+
  807.     set Error = "Binding: Sorry, not yet implemented."
  808.     goto fatal
  809.  
  810. ;-----------------------------------------------
  811. ; Removeadapter section
  812. ;-----------------------------------------------
  813.  
  814. removeadapter = +
  815.     Ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  816.     ; Remove Software Component
  817.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  818.         $(ProductSoftwareName)
  819.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  820.         goto ShellCodeError
  821.     endif
  822.  
  823.     set RegistryErrorIndex = $($R0)
  824.  
  825.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  826.         goto fatalregistry
  827.     endif
  828.     else
  829.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  830.         $(ProductSoftwareName), $(!NTN_RegBase)
  831.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  832.         goto ShellCodeError
  833.     endif
  834.  
  835.     set RegistryErrorIndex = $($R0)
  836.  
  837.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  838.         goto fatalregistry
  839.     endif
  840.     endif
  841.  
  842.     goto end
  843.  
  844. ;-----------------------------------------------
  845. ; Upgrade Software section
  846. ;-----------------------------------------------
  847.  
  848. UpgradeSoftware = +
  849.  
  850.     ifstr(i) $(ProductKeyName) == $(!NTN_RegBase)
  851.     ; Upgrade software component
  852.     ;
  853.     ; see whether the same version exist or not
  854.     ;
  855.     OpenRegKey $(!REG_H_LOCAL) "" $(ProductKeyName) $(MAXIMUM_ALLOWED) KeyProduct
  856.  
  857.     Ifstr $(KeyProduct) != $(KeyNull)
  858.         GetRegValue $(KeyProduct),"MajorVersion", VersionInfo
  859.         set Version = *($(VersionInfo), 4)
  860.  
  861.         ;
  862.         ; Update the binaries
  863.         ;
  864.         Shell $(UtilityInf), GetInfFileNameFromRegistry, $(KeyProduct)
  865.  
  866.         ifint $($ShellCode) != $(!SHELL_CODE_OK)
  867.         goto ShellCodeError
  868.         endif
  869.  
  870.         set !UG_Filename = $($R0)
  871.  
  872.         ifstr(i) $(!UG_Filename) != ""
  873.         install "Install-Update"
  874.         ifstr(i) $(STF_INSTALL_OUTCOME) != STF_SUCCESS
  875.             goto fatal
  876.         endif
  877.         endif
  878.  
  879.         ; Upgrade the version number
  880.         ;
  881.         SetRegValue $(KeyProduct) {MajorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMajorVersion)}
  882.         SetRegValue $(KeyProduct) {MinorVersion,$(NoTitle),$(!REG_VT_SZ),$(ProductMinorVersion)}
  883.  
  884.         ;
  885.         ; do nothing for update
  886.         ;
  887.         ifint $(Version) != $(ProductVersion)
  888.            ;
  889.            ; If the major version number is not the same,
  890.            ; it is major upgrade. So let Upgrade the product
  891.            ;
  892.            ;
  893.            ; make other upgrade change if necessary
  894.            ;
  895.         endif
  896.         CloseRegKey $(KeyProduct)
  897.     else
  898.         ;
  899.         ; Cannot Open software key, goto ERROR
  900.         ;
  901.         goto fatalregistry
  902.     endif
  903.     else
  904.     ;
  905.     ; upgrade/update hardware component
  906.     ; There is no different between upgrade and update for hardware
  907.     ; component
  908.     ;
  909.     ; 1. Get the Service Name
  910.     ; 2. Change the NetRule section if necessary
  911.     ;
  912.     OpenRegKey $(!REG_H_LOCAL) "" $(!NTN_RegBase) +
  913.           $(MAXIMUM_ALLOWED) NetworkCardKey
  914.     Ifstr(i) $(NetworkCardKey) != $(KeyNull)
  915.         ;
  916.         ; Get Service name
  917.         ;
  918.         GetRegValue $(NetworkCardKey),"ServiceName", ServiceNameInfo
  919.         set ServiceName = *($(ServiceNameInfo), 4)
  920.  
  921.         ;
  922.         ; Change the NetRule if necessary
  923.         ;
  924.         OpenRegKey $(NetworkCardKey) "" "NetRules" +
  925.         $(MAXIMUM_ALLOWED) NetRuleKey
  926.         Ifstr(i) $(NetRuleKey) != $(KeyNull)
  927.         ;
  928.         ; Make the change....
  929.         ;
  930.         else
  931.         ;
  932.         ; Error, cannot open net rules key
  933.         ;
  934.         goto fatalregistry
  935.         endif
  936.  
  937.         CloseRegKey $(NetRules)
  938.         CloseRegKey $(NetworkCardKey)
  939.     else
  940.         ;
  941.         ; Error, cannot open network card key
  942.         ;
  943.         goto fatalregistry
  944.     endif
  945.     ;
  946.     ; 3. Change the service section of the hardware. i.e.,
  947.     ;    ParameterName change, value change, etc.
  948.     ;
  949.     OpenRegKey $(!REG_H_LOCAL) "" +
  950.           $(!NTN_ServiceBase)"\"$(ServiceName) +
  951.           $(MAXIMUM_ALLOWED) ServiceKey
  952.  
  953.     Ifstr(i) $(ServiceKey) != $(KeyNull)
  954.         ;
  955.         ; Get the ServiceKey to change the Start value
  956.         ; or Type value. Or open Parameters key to
  957.         ; change the hardware parameters if necessary.
  958.         ;
  959.         CloseRegKey $(ServiceKey)
  960.     else
  961.         ;
  962.         ; Error, cannot open network card key
  963.         ;
  964.         goto fatalregistry
  965.     endif
  966.     endif
  967.  
  968.     goto end
  969.     ;
  970.     ; End of Upgrade Software
  971.     ;
  972.  
  973. ;
  974. ;  Escape hatches
  975. ;
  976. successful = +
  977.     goto end
  978.  
  979. abandon = +
  980.     ForListDo $(OEM_ABANDON_OPTIONS)
  981.     Shell $(UtilityInf), RemoveHardwareComponent, $(Manufacturer), +
  982.         $(ProductSoftwareName), $($)
  983.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  984.         goto ShellCodeError
  985.     endif
  986.  
  987.     set RegistryErrorIndex = $($R0)
  988.  
  989.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  990.         goto fatalregistry
  991.     endif
  992.     EndForListDo
  993.  
  994.     Ifstr(i) $(OEM_ABANDON_SOFTWARE) == TRUE
  995.     ; Remove Software Component
  996.     Shell $(UtilityInf), RemoveSoftwareComponent, $(Manufacturer), +
  997.         $(ProductSoftwareName), FALSE
  998.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  999.         goto ShellCodeError
  1000.     endif
  1001.  
  1002.     set RegistryErrorIndex = $($R0)
  1003.  
  1004.     Ifstr(i) $(RegistryErrorIndex) != NO_ERROR
  1005.         goto fatalregistry
  1006.     endif
  1007.     endif
  1008.  
  1009.     goto end
  1010.  
  1011. ;
  1012. ; warning display
  1013. ;
  1014. warning = +
  1015.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "WARNING", $(Error)
  1016.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1017.     goto ShellCodeError
  1018.     endif
  1019.     ifstr(i) $($R1) == "OK"
  1020.     goto $(to)
  1021.     else-ifstr(i) $($R1) == "CANCEL"
  1022.     goto $(from)
  1023.     else
  1024.     goto "end"
  1025.     endif
  1026. ;
  1027. ; non fatal error display
  1028. ;
  1029. nonfatalinfo = +
  1030.     Set Severity = STATUS
  1031.     Set CommonStatus = STATUS_USERCANCEL
  1032.     goto nonfatalmsg
  1033. nonfatal = +
  1034.     Set Severity = NONFATAL
  1035.     goto nonfatalmsg
  1036. nonfatalmsg = +
  1037.     ifstr(i) $(Error) == ""
  1038.     Set Severity = NONFATAL
  1039.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1040.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1041.         goto ShellCodeError
  1042.     endif
  1043.     set Error = $($R0)
  1044.     endif
  1045.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), $(Severity), $(Error)
  1046.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1047.     goto ShellCodeError
  1048.     endif
  1049.     ifstr(i) $($R1) == "OK"
  1050.     goto $(from)
  1051.     else
  1052.     goto "end"
  1053.     endif
  1054.  
  1055. ;
  1056. ;  Registry is broken
  1057. ;
  1058. fatalregistry = +
  1059.     Shell $(UtilityInf) RegistryErrorString $(RegistryErrorIndex)
  1060.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1061.     goto ShellCodeError
  1062.     endif
  1063.     set Error = $($R0)
  1064.     goto fatal
  1065. ;
  1066. ;  Netcard detection failure
  1067. ;
  1068. fataldetect = +
  1069.     Shell $(UtilityInf),RegistryErrorString,CANNOT_DETECT
  1070.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1071.     goto ShellCodeError
  1072.     endif
  1073.     set Error = $($R0)
  1074.     Goto fatal
  1075. ;
  1076. ; fatal error display
  1077. ;
  1078. fatal = +
  1079.     ifstr(i) $(Error) == ""
  1080.     Shell $(UtilityInf) RegistryErrorString "SETUP_FAIL"
  1081.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1082.         goto ShellCodeError
  1083.     endif
  1084.     set Error = $($R0)
  1085.     endif
  1086.     Shell $(subroutineinf) SetupMessage, $(!STF_LANGUAGE), "FATAL", $(Error)
  1087.     ifint $($ShellCode) != $(!SHELL_CODE_OK)
  1088.     goto ShellCodeError
  1089.     endif
  1090.  
  1091.     goto setfailed
  1092.  
  1093. ;
  1094. ;  Shelling error
  1095. ;
  1096. ShellCodeError = +
  1097.     set DlgType      = "MessageBox"
  1098.     set STF_MB_TITLE = $(ShellCodeErrorTitle)
  1099.     set STF_MB_TEXT  = $(ShellCodeErrorText) 
  1100.     set STF_MB_TYPE  = 1
  1101.     set STF_MB_ICON  = 3
  1102.     set STF_MB_DEF   = 1
  1103.     ui start "Error Message"
  1104.     goto setfailed
  1105.  
  1106. setfailed = +
  1107.     set CommonStatus = STATUS_FAILED
  1108.     ;
  1109.     ; if OEM_ABANDON_ON == TRUE, then remove the registry entries
  1110.     ;
  1111.     ifstr(i) $(OEM_ABANDON_ON) == TRUE
  1112.     set OEM_ABANDON_ON = FALSE
  1113.     goto abandon
  1114.     endif
  1115.     goto end
  1116.  
  1117. end = +
  1118.     goto term
  1119.  
  1120. term = +
  1121.  
  1122.     Return $(CommonStatus)
  1123.  
  1124. [DebugConfiguration]
  1125.  
  1126.     Set InfName = "OEMsetup.INF"
  1127.  
  1128.     return
  1129.  
  1130.  
  1131. ;***************************************************************
  1132. ;  INSTALL SECTIONS
  1133. ;***************************************************************
  1134. [Install-Option]
  1135.     set STF_VITAL = ""
  1136.  
  1137.     ifstr(i) $(AddCopy) == "YES"
  1138.  
  1139.     ;
  1140.     ; Add the files to the copy list
  1141.     ;
  1142.     ;  BUGBUG: eliminate the "nt2" in the next line when Sunil fixes
  1143.     ;      the other INF files
  1144.     ;
  1145.     AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1146.  
  1147.     endif
  1148.  
  1149.     ifstr(i) $(DoCopy) == "YES"
  1150.  
  1151.        ;
  1152.        ; Copy files in the copy list
  1153.        ;
  1154.        set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1155.        CopyFilesInCopyList
  1156.  
  1157.     endif
  1158.  
  1159.     Exit
  1160.  
  1161. [Install-Update]
  1162.    set STF_VITAL        = ""
  1163.    set STF_OVERWRITE    = "VERIFYSOURCEOLDER"
  1164.    ;set STF_VERSION     = "YES"
  1165.  
  1166.    AddSectionFilesToCopyList Files-$(Option) $(SrcDir) $(!STF_WINDOWSSYSPATH)\drivers
  1167.    AddSectionFilesToCopyList Files-Inf $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1168.  
  1169.    set !STF_NCPA_FLUSH_COPYLIST = TRUE
  1170.    CopyFilesInCopyList
  1171.  
  1172.    exit
  1173.  
  1174. [Install-Dll]
  1175.    set STF_VITAL        = ""
  1176.    AddSectionFilesToCopyList Files-Dll $(SrcDir) $(!STF_WINDOWSSYSPATH)
  1177.    CopyFilesInCopyList
  1178.    exit
  1179.  
  1180. [Source Media Descriptions]
  1181.     1  = "Windows NT Setup Disk #1"  , TAGFILE = disk1
  1182.     2  = "Windows NT Setup CD-ROM Disk"  , TAGFILE = disk2
  1183.     5  = "Cabletron Drivers Disk", TAGFILE = T20N3.SYS
  1184.     99  = "LMHOST disk", TAGFILE = lmhosts
  1185.  
  1186. [ProductType]
  1187. STF_PRODUCT  = Winnt
  1188. STF_PLATFORM = I386
  1189.  
  1190. [Files-Inf]
  1191. 5,      oemsetup.inf,    SIZE=1000,     RENAME=$(!UG_Filename)
  1192.  
  1193. [Files-T20XX]
  1194. 5, T20N3.SYS , SIZE=88888
  1195.  
  1196. [Files-Dll]
  1197. 5, ctrondlg.dll,  SIZE=999
  1198.  
  1199. [LanguagesSupported]
  1200.     ENG
  1201.  
  1202. [OptionsTextENG]
  1203.     T20XX     = "Cabletron T20XX Token-Ring Adapter"
  1204.  
  1205. [FileConstantsENG]
  1206. ProCaption   = "Windows NT Setup"
  1207. ProCancel    = "Cancel"
  1208. ProCancelMsg = "Windows NT Networking is not correctly installed.  "+
  1209.            "Are you sure you want to cancel copying files?"
  1210. ProCancelCap = "Network Setup Message"
  1211. ProText1     = "Copying:"
  1212. ProText2     = "To:"
  1213.  
  1214. FunctionTitle   = $(GenericAdapterName)" Card Setup"$(GenericInfVersion)
  1215.  
  1216. ProductSoftwareDescription = $(GenericDriverName)
  1217. ProductHardwareDescription = $(GenericAdapterName)
  1218.  
  1219. ProductSoftwareTitle =       $(GenericDriverName)
  1220. ProductHardwareT20XXTitle =       $(GenericAdapterName)
  1221.  
  1222. DialogDllName   = "ctrondlg.dll"
  1223.  
  1224.  
  1225. IRQList  = ^(IRQChoices, 1)
  1226. IRQValues = ^(IRQChoices, 2)
  1227.  
  1228. IOBaseAddrList = ^(IOBaseAddrChoices, 1)
  1229. IOBaseAddrValues = ^(IOBaseAddrChoices, 2)
  1230.  
  1231. DMAChannelList = ^(DMAChannelChoices,1)
  1232. DMAChannelValues = ^(DMAChannelChoices,2)
  1233.  
  1234. PacketsizeList = ^(PacketsizeChoices,1) 
  1235. PacketsizeValues = ^(PacketsizeChoices,2)
  1236.  
  1237. [DialogConstantsENG]
  1238. Help        = "&Help"
  1239. Exit        = "Cancel"
  1240. OK          = "OK"
  1241. HelpContext = ""
  1242. Continue    = "Continue"
  1243. Cancel      = "Cancel"
  1244.  
  1245. [FileDependentDlgENG]
  1246.  
  1247. DlgText = "Please select values for the following fields:"
  1248.  
  1249. DlgType = "RadioCombination"
  1250. DlgTemplate = "T20XX"
  1251. Caption = $(FunctionTitle)
  1252.  
  1253. CBOptionsGreyed = {}
  1254. NotifyFields = {NO, NO}
  1255. HelpContext = $(!IDH_DB_OEMNADE2_INS)
  1256.  
  1257. Edit1Label = "Alt Network &Address:"
  1258. EditTextLim = 17
  1259. EditTextIn = $(NetworkAddress)
  1260.  
  1261. Combo1Label = "&IRQ Level:"
  1262. Combo2Label = "I/&O Port:"
  1263. Combo3Label = "&DMA Channel:"
  1264. Combo4Label = "&Max Frame Size:"
  1265.  
  1266. Combo1List = $(IRQList)
  1267. Combo1Out  = $(IRQValue)
  1268.  
  1269. Combo2List = $(IOBaseAddrList)
  1270. Combo2Out  = $(IOBaseAddrValue)
  1271.  
  1272. Combo3List = $(DMAChannelList)
  1273. Combo3Out  = $(DMAChannelValue)
  1274.  
  1275. Combo4List = $(PacketsizeList)
  1276. Combo4Out = $(PacketsizeValue)
  1277.  
  1278. ComboListItemsIn  = {Combo1List, Combo2List, Combo3List, Combo4List}
  1279. ComboListItemsOut = {Combo1Out, Combo2Out, Combo3Out, Combo4Out}
  1280.  
  1281. ;EditTextIn = {"",""}
  1282.  
  1283. ;EditTextLim = {"",""}
  1284.  
  1285. Group1 = "Transceiver"
  1286. Group2 = "Line Speed"
  1287. Group3 = "Timing"
  1288.  
  1289. Radio1 = "UTP"
  1290. Radio2 = "STP"
  1291.  
  1292. Radio3 = "4"
  1293. Radio4 = "16"
  1294.  
  1295. Radio5 = "Default"
  1296. Radio6 = "Alternate"
  1297.  
  1298. [IRQChoices]
  1299. IRQ_1 = "3",3
  1300. IRQ_2 = "4",4
  1301. IRQ_3 = "5",5
  1302. IRQ_4 = "7",7
  1303. IRQ_5 = "9",9
  1304. IRQ_6 = "10",10
  1305. IRQ_7 = "11",11
  1306. IRQ_8 = "12",12
  1307. IRQ_9 = "14",14
  1308. IRQ_10 = "15",15
  1309.  
  1310. [IOBaseAddrChoices]
  1311. IOBase_1  = "0x0A20",2592
  1312. IOBase_2  = "0x0A80",2688
  1313. IOBase_3  = "0x1A20",6688
  1314. IOBase_4  = "0x1A80",6784
  1315.  
  1316. [DMAChannelChoices]
  1317. DMA_1 = "5",5
  1318. DMA_2 = "6",6
  1319. DMA_3 = "7",7
  1320.  
  1321. [PacketsizeChoices]
  1322. Packetsize_1 = "1500",1500
  1323. Packetsize_2 = "2048",2048
  1324. Packetsize_3 = "4096",4096
  1325. Packetsize_4 = "4500",4500
  1326.